from selenium import webdriver
import time

options = webdriver.ChromeOptions()
options.add_argument("-headless")

driver=webdriver.Chrome(options=options)

driver.get("https://www.baidu.com")
print(driver.title)

time.sleep(3)
driver.quit()
